package facade.subsystem;

import java.util.Random;

public class HardDisk {
    public boolean read(){
        System.out.println("开始读取硬盘----引导系统");
        Random random = new Random();
        int hardDiskInfo = random.nextInt(1000);
        //假设硬盘出问题的概率是1/1000。
        return hardDiskInfo < 999;
    }
}
